
#define BIT0 0b00000001
#define BIT1 0b00000010
#define BIT2 0b00000100
#define BIT3 0b00001000
#define BIT4 0b00010000
#define BIT5 0b00100000
#define BIT6 0b01000000


unsigned char ENABLE;
unsigned char POLLING;

unsigned char flags;	//stores the mask value (used in anticollision)

#define BUF_LENGTH 300		//Number of characters in a frame
 char rxdata;			//RS232 RX data byte
unsigned char buf[BUF_LENGTH];
signed char RXTXstate;	//used for transmit recieve byte count
unsigned char flags;	//stores the mask value (used in anticollision)
unsigned char RXErrorFlag;
 unsigned char RXflag;		//indicates that data is in buffer

unsigned char i_reg;	//interrupt register